package com.jiangyao.model.dto;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "发表评论")
public class EvaluationDto implements BaseDTO{


    @ApiModelProperty("评价内容")
    @NotNull(message = "评论内容不能为空", groups = {Add.class})
    private String content;


    @ApiModelProperty("关联的评论ID")
    @NotNull(message = "回复的评论ID不能为空" , groups = {Add.class})
    private Integer releteId;


    @ApiModelProperty("学期课程ID")
    @NotNull(message = "评论的学期课程ID不能为空", groups = {Add.class})
    private Integer clsubId;
}
